package com.example.demo2.common.config.web;


public enum ErrorEnum {


    SYSTEM_ERR(10001, "系统异常"),

    NO_LOGIN(10002, "没有登陆"),

    NO_LEGAL(10003, "认证失败!"),


    NO_PERMISSION(10004, "没有权限");


    private final Integer code;

    private final String msg;

    ErrorEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
